<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<title>文件上传</title>
	<script type="text/javascript">
	function a(){
		document.form1.name.value=form1.filepath.value;
	}
	</script>
</head>
<body>
<h1>文件上传</h1>
<form method="post" action="message.jsp" name="form1">
	选择一个文件:
	<!-- <input type="text" name="name" id="name"> -->
    <input type="file" name="filepath" id="filepath" >
    <br/><br/>
    <!-- <input type = "button" value ="print" onclick="a()"> -->
    <input type="submit" value="上传" >
</form>
</body>
</html>